<template>
	<view>
		<view class="uni-btn-v" @click="goDetailPage('login')">
		<button from-type="submit">登录注册页</button>
		</view>
		<view class="uni-btn-v" @click="goDetailPage('City')">
		<button from-type="submit">城市探索</button>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				
			}
		},
		methods: {
			goDetailPage(e){
				if (typeof e === 'string'){
					uni.navigateTo({
						url:'/pages/tabBar/' + e + '/' + e
					});
				}else{
					uni.navigateTo({
						url:e.url
					});
				}
			}
		}
	}
</script>

<style>

</style>
